/**
 * @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
 * For licensing, see LICENSE.html or http://ckeditor.com/license
 */

CKEDITOR.editorConfig = function( config )
{
	config.language = 'en';
	
	config.font_names = '宋体;楷体_GB2312;新宋体;黑体;隶书;幼圆;微软雅黑;Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana';
	
	config.enterMode = CKEDITOR.ENTER_BR;
	config.shiftEnterMode = CKEDITOR.ENTER_P; 
	
	config.toolbar = 'Full';
	
	config.toolbar_Full =
	[
	  { name: 'document', items : [ 'Source'] },
	  { name: 'clipboard', items : [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] },
	  { name: 'editing', items : [ 'Find','Replace','-','SelectAll','-','SpellChecker'] },
	  { name: 'insert', items : [ 'Image','Table','HorizontalRule','Smiley','SpecialChar' ] },
	  '/',
	  { name: 'basicstyles', items : [ 'Bold','Italic','Underline','Strike','Subscript','Superscript' ] },
	  { name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Outdent','Indent'] },
	  { name: 'paragraph', items : ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl' ] },
	  { name: 'links', items : [ 'Link','Unlink' ] },		
	  '/',
	  { name: 'styles', items : [ 'Styles','Format','Font','FontSize' ] },
	  { name: 'colors', items : [ 'TextColor','BGColor' ] },
	  { name: 'tools', items : [ 'Maximize'] }
	];
	
	config.width =771;//宽度	
	config.height = 250;//高度
	
	config.allowedContent = true; 

var url = '/tvb_charity/Public';
config.filebrowserBrowseUrl = url + '/ckeditor/ckfinder/ckfinder.html';   
config.filebrowserImageBrowseUrl = url +'/ckeditor/ckfinder/ckfinder.html?Type=Images';   
config.filebrowserFlashBrowseUrl = url +'/ckeditor/ckfinder/ckfinder.html?Type=Flash';   
config.filebrowserUploadUrl = url +'/ckeditor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files';   
config.filebrowserImageUploadUrl = url +'/ckeditor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images';   
config.filebrowserFlashUploadUrl = url +'/ckeditor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash'; 
};